package me.flyray.bsin.server.common;

public enum ResponseCode implements ReturnCode {

    /***********************************通用错误码*****************************************/
    OK("000000", "请求成功"),
    FAIL("100000","请求失败"),
    PUSH_MESSAGE_FAIL("100001","消息推送失败"),

    PROCESS_INSTANCE_START_FAIL("400101","流程实例启动失败"),
    SUSPEND_PROCESS_INSTANCE_FAIL("400102","挂起流程实例失败"),
    ACTIVATE_PROCESS_INSTANCE_FAIL("400103","激活流程实例失败"),
    PROCESS_INSTANCE_NOT_EXISTS("400104","流程实例不存在"),
    ID_NOT_ISNULL("100801","Id不能为空");






    private String code;
    private String message;


    private ResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    @Override
    public String getReturnCode() {
        return code;
    }

    @Override
    public String getReturnMessage() {
        return message;
    }

}
